/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import com.google.common.collect.Lists;
/*     */ import java.awt.Point;
/*     */ import java.awt.geom.Point2D;
/*     */ import java.util.HashMap;
/*     */ import java.util.LinkedHashMap;
/*     */ import java.util.List;
/*     */ import java.util.Map;
/*     */ import java.util.regex.Pattern;
/*     */ import org.yaml.snakeyamla.configuration.ConfigurationSection;
/*     */ import org.yaml.snakeyamla.configuration.file.YamlConfiguration;
/*     */ 
/*     */ 
/*     */ 
/*     */ public class ica
/*     */   extends iaa
/*     */ {
/*     */   private boolean j;
/*     */   private int c;
/*     */   private String r;
/*     */   private String f;
/*     */   private Point2D.Float s;
/*     */   private float m;
/*     */   private float l;
/*  26 */   private LinkedHashMap<String, sfa> t = new LinkedHashMap<>();
/*  27 */   private LinkedHashMap<String, bfa> d = new LinkedHashMap<>();
/*  28 */   private LinkedHashMap<String, oja> z = new LinkedHashMap<>();
/*     */   private fea i;
/*  30 */   private Map<Integer, Point> w = new HashMap<>();
/*     */   
/*     */   private rja q;
/*     */   public Pattern g;
/*     */   
/*     */   public ica(YamlConfiguration yamlConfiguration, boolean bool) {
/*  36 */     this.j = yamlConfiguration.getBoolean("blur", true);
/*  37 */     this.c = yamlConfiguration.getInt("type", 0);
/*  38 */     this.r = yamlConfiguration.getString("object", "");
/*  39 */     this.f = yamlConfiguration.getString("background", "");
/*  40 */     String[] arrayOfString = yamlConfiguration.getString("offset", "0,0").split(",");
/*  41 */     this.s = new Point2D.Float(Float.parseFloat(arrayOfString[0]), Float.parseFloat(arrayOfString[1]));
/*  42 */     this.m = (float)yamlConfiguration.getDouble("width", 0.0D);
/*  43 */     this.l = (float)yamlConfiguration.getDouble("height", 0.0D);
/*     */     
/*  45 */     ConfigurationSection configurationSection = yamlConfiguration.getConfigurationSection("slots");
/*  46 */     if (configurationSection != null) {
/*  47 */       for (String str : configurationSection.getKeys(false)) {
/*  48 */         ConfigurationSection configurationSection1 = configurationSection.getConfigurationSection(str);
/*  49 */         this.t.put(str, new sfa(configurationSection1));
/*     */       } 
/*     */     }
/*     */     
/*  53 */     configurationSection = yamlConfiguration.getConfigurationSection("buttons");
/*  54 */     if (configurationSection != null) {
/*  55 */       for (String str : configurationSection.getKeys(false)) {
/*  56 */         ConfigurationSection configurationSection1 = configurationSection.getConfigurationSection(str);
/*  57 */         this.d.put(str, new bfa(configurationSection1));
/*     */       } 
/*     */     }
/*     */     
/*  61 */     configurationSection = yamlConfiguration.getConfigurationSection("strings");
/*  62 */     if (configurationSection != null) {
/*  63 */       for (String str : configurationSection.getKeys(false)) {
/*  64 */         ConfigurationSection configurationSection1 = configurationSection.getConfigurationSection(str);
/*  65 */         this.z.put(str, new oja(configurationSection1));
/*     */       } 
/*     */     }
/*     */     
/*  69 */     this.i = new fea(yamlConfiguration.getConfigurationSection("player"));
/*     */     
/*  71 */     this.q = new rja(yamlConfiguration.getConfigurationSection("model"));
/*  72 */     if (bool) {
/*  73 */       this.r = "E-Inventory";
/*  74 */       this.c = 0;
/*     */     } 
/*     */     
/*  77 */     v();
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   public void v() {
/*  83 */     this.r = this.r.replace("&", "§");
/*  84 */     this.t.forEach((a, sfa1) -> sfa1.v());
/*  85 */     this.d.forEach((a, bfa1) -> bfa1.v());
/*  86 */     this.z.forEach((a, oja1) -> oja1.v());
/*  87 */     this.z.forEach((a, oja1) -> oja1.z(oja1.z().replace("&", "§")));
/*  88 */     this.q.v();
/*  89 */     if (this.c == 3) {
/*  90 */       this.g = Pattern.compile(this.r);
/*     */     }
/*     */     
/*  93 */     List<sfa> list = Lists.newArrayList(this.t.values());
/*  94 */     for (int i = 0; i < list.size(); i++) {
/*  95 */       ((sfa)list.get(i)).v(i);
/*     */     }
/*     */     
/*  98 */     if (this.r.equals("E-Inventory")) {
/*     */       
/* 100 */       List<String> list1 = this.i.y(); int j;
/* 101 */       for (j = 0; j < list1.size(); j++) {
/* 102 */         this.w.put(Integer.valueOf(9 + j), eea.v(((String)list1.get(j)).replace("i", String.valueOf(j))));
/*     */       }
/* 104 */       list1 = this.i.t();
/* 105 */       for (j = 0; j < list1.size(); j++) {
/* 106 */         this.w.put(Integer.valueOf(18 + j), eea.v(((String)list1.get(j)).replace("i", String.valueOf(j))));
/*     */       }
/* 108 */       list1 = this.i.h();
/* 109 */       for (j = 0; j < list1.size(); j++) {
/* 110 */         this.w.put(Integer.valueOf(27 + j), eea.v(((String)list1.get(j)).replace("i", String.valueOf(j))));
/*     */       }
/* 112 */       list1 = this.i.z();
/* 113 */       for (j = 0; j < list1.size(); j++) {
/* 114 */         this.w.put(Integer.valueOf(36 + j), eea.v(((String)list1.get(j)).replace("i", String.valueOf(j))));
/*     */       }
/* 116 */       list1 = this.i.v();
/*     */       
/* 118 */       for (j = 0; j < list1.size(); j++) {
/* 119 */         if (j == 9) {
/*     */           
/* 121 */           this.w.put(Integer.valueOf(45), eea.v(((String)list1.get(j)).replace("i", String.valueOf(j))));
/*     */         } else {
/*     */           
/* 124 */           this.w.put(Integer.valueOf(j), eea.v(((String)list1.get(j)).replace("i", String.valueOf(j))));
/*     */         } 
/*     */       } 
/*     */     } else {
/* 128 */       List<String> list1 = this.i.y(); int j;
/* 129 */       for (j = 0; j < list1.size(); j++) {
/* 130 */         this.w.put(Integer.valueOf(j), eea.v(((String)list1.get(j)).replace("i", String.valueOf(j))));
/*     */       }
/* 132 */       list1 = this.i.t();
/* 133 */       for (j = 0; j < list1.size(); j++) {
/* 134 */         this.w.put(Integer.valueOf(9 + j), eea.v(((String)list1.get(j)).replace("i", String.valueOf(j))));
/*     */       }
/* 136 */       list1 = this.i.h();
/* 137 */       for (j = 0; j < list1.size(); j++) {
/* 138 */         this.w.put(Integer.valueOf(18 + j), eea.v(((String)list1.get(j)).replace("i", String.valueOf(j))));
/*     */       }
/* 140 */       list1 = this.i.z();
/* 141 */       for (j = 0; j < list1.size(); j++) {
/* 142 */         this.w.put(Integer.valueOf(27 + j), eea.v(((String)list1.get(j)).replace("i", String.valueOf(j))));
/*     */       }
/*     */     } 
/*     */   }
/*     */ 
/*     */   
/*     */   public boolean v() {
/* 149 */     return this.j;
/*     */   }
/*     */ 
/*     */   
/*     */   public int v() {
/* 154 */     return this.c;
/*     */   }
/*     */ 
/*     */   
/*     */   public String v() {
/* 159 */     return this.r;
/*     */   }
/*     */   
/*     */   public String z() {
/* 163 */     return this.f;
/*     */   }
/*     */   
/*     */   public Point2D.Float v() {
/* 167 */     return this.s;
/*     */   }
/*     */   
/*     */   public float z() {
/* 171 */     return this.m;
/*     */   }
/*     */   
/*     */   public float v() {
/* 175 */     return this.l;
/*     */   }
/*     */   
/*     */   public LinkedHashMap<String, sfa> h() {
/* 179 */     return this.t;
/*     */   }
/*     */   
/*     */   public LinkedHashMap<String, bfa> z() {
/* 183 */     return this.d;
/*     */   }
/*     */   
/*     */   public LinkedHashMap<String, oja> v() {
/* 187 */     return this.z;
/*     */   }
/*     */   
/*     */   public fea v() {
/* 191 */     return this.i;
/*     */   }
/*     */   
/*     */   public Map<Integer, Point> v() {
/* 195 */     return this.w;
/*     */   }
/*     */   
/*     */   public rja v() {
/* 199 */     return this.q;
/*     */   }
/*     */ 
/*     */   
/*     */   public Pattern v() {
/* 204 */     return this.g;
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\ica.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */